summaryrefslogtreecommitdiff
path: root/.local/bin/statusbar/sb-tasks [TODO]
diff options
context:
space:
mode:
authormarlonivo <email@marlonivo.xyz>2025-04-14 10:21:23 +0000
committermarlonivo <email@marlonivo.xyz>2025-04-14 10:21:23 +0000
commit4e3440c77a5e3a9f09d1719e2e8782500e3a5415 (patch)
tree25c2b34cc9a73043adb888d33745f473e5ed41d5 /.local/bin/statusbar/sb-tasks [TODO]
parent0d1a84f59d8cdd62c97410f96f8a13c98c51453a (diff)
removalHEADmaster
Diffstat (limited to '.local/bin/statusbar/sb-tasks [TODO]')
-rwxr-xr-x.local/bin/statusbar/sb-tasks [TODO]16
1 files changed, 0 insertions, 16 deletions
diff --git a/.local/bin/statusbar/sb-tasks [TODO] b/.local/bin/statusbar/sb-tasks [TODO]
deleted file mode 100755
index fbee70b..0000000
--- a/.local/bin/statusbar/sb-tasks [TODO]
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-# This block displays the number running background tasks. Requires tsp.
-
-num=$(tsp -l | awk -v numr=0 -v numq=0 '{if (/running/)numr++; if (/queued/)numq++} END{print numr+numq"("numq")"}')
-
-# Handle mouse clicks
-case $BLOCK_BUTTON in
- 1) setsid -f "$TERMINAL" -e tsp -l ;;
- 3) notify-send "Tasks module" "🤖: number of running/queued background tasks
-- Left click opens tsp" ;; # Right click
- 6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
-esac
-
-[ "$num" != "0(0)" ] &&
- echo "🤖$num"